<template>
	<view class="firstNav">
		<view class="leftIcon iconfont icon-sousuo">
		</view>
		<view class="middle">
			<!-- <text class="text">推荐</text>
			<text class="text">同城</text> -->
			<navigator open-type="switchTab" url="/pages/index/index" class="text">推荐</navigator>
			<navigator open-type="navigate" url="/pages/city/city" class="text">同城</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		name:"first-nav",
		data() {
			return {
				
			};
		}
	}
</script>

<style>
.firstNav{
	width: 100%;
	height: 35px;
	position: fixed;
	top: 25px;
	left: 0;
	margin: 0 auto;
	line-height: 35px;
	z-index: 20;
}
.leftIcon{
	width: 20%;
	color: white;
	text-align: center;
	font-size: 20px;
	position: absolute;
	top: 0;
	left: 0;
}
.middle{
	text-align: center;
}
.text{
	display: inline;
	color: white;
	margin: 0 10px;
}
</style>
